@mixin ColorStyle($font, $color) {
  font-size: $font;
  font-weight: normal;
  font-stretch: normal;
  color: $color;
}
@mixin Box($color) {
  background-color: #ffffff;
  border-radius: 15px;
  border: solid 1px $color;
  @include ColorStyle(0.875rem, $color);
  padding: {
    left: 0.525rem;
    right: 0.525rem;
  }
}
.personCenterContainer {
  position: relative;
  height: 100vh;
  width: 100vw;
  background-image: url('../assets/bkgPersonCenter.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  .logo {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    height: 10.25rem;
    width: 12.25rem;
  }
  .null {
    @include ColorStyle(1rem, #a8a8a8);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .options {
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.3);
  }
  .content {
    position: absolute;
    top: 0;
    width: 100vw;
    height: 92vh;
    overflow: hidden;
    overflow-y: scroll;
    padding: {
      left: 0.625rem;
      right: 0.625rem;
    }
    .content_item {
      box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.3);
      margin: {
        top: 0.625rem;
        bottom: 0.625rem;
      }
      padding: {
        top: 0.9375rem;
        bottom: 0.625rem;
        left: 0.9375rem;
        right: 0.875rem;
      }
      min-height: 9rem;
      border-radius: 0.3125rem;
      background-color: white;
      .header {
        display: flex;
        justify-content: space-between;
        span {
          @include ColorStyle(1rem, #4d4d4d);
        }
        // 未开考
        .noExam {
          @include Box(#2bb8b5);
        }
        // 未支付
        .unpaid {
          @include Box(#ffa477);
        }
        // 过期
        .expired {
          @include Box(#c4c4c4);
        }
        // 分数
        .fraction {
          @include ColorStyle(1.2rem, #2bb8b5);
          font-weight: bold;
        }
      }
      .contentInfo {
        display: flex;
        justify-content: space-between;
        .infoList {
          .infoList_item {
            margin: {
              top: 0.3125rem;
            }
            span:nth-of-type(1) {
              @include ColorStyle(0.8125rem, #959595);
            }
            span:nth-of-type(2) {
              @include ColorStyle(0.8125rem, #4d4d4d);
              white-space: nowrap;
            }
            .noExamSpan {
              color: #2bb8b5 !important;
            }
            .openExam {
              color: #ffa477 !important;
            }
          }
        }
        .opercation {
          display: flex;
          flex-direction: column-reverse;
          .position {
            min-width: 2.575rem;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            img {
              display: inline-block;
              height: 1.5rem;
              width: 1.5rem;
            }
            span {
            }
          }
          span {
            color: #2bb8b5;
            font-size: 0.875rem;
            white-space: nowrap;
          }
          button {
            outline: none;
            border: none;
            background-image: linear-gradient(-89deg, #2bb8b5 0%, #01d2ba 100%, #2bb8b5 100%), linear-gradient(#2bb8b5, #2bb8b5);
            background-blend-mode: normal, normal;
            border-radius: 10px;
            color: #fff;
            height: 2.5rem;
            width: 5.625rem;
          }
        }
      }
    }
  }
}
.UserModel {
  position: absolute;
  top: 5%;
  left: 50%;
  display: flex;
  align-items: center;
  transform: translateX(-50%);
  width: 90vw;
  height: 15vh;
  background-color: white;
  border-radius: 0.625rem;
  padding: {
    left: 1.3125rem;
    right: 1.25rem;
  }
  .usrLogo {
    position: relative;
    margin: {
      right: 0.625rem;
    }
    img:nth-of-type(1) {
      position: absolute;
      top: -0.625rem;
      left: 33%;
      height: 1.125rem;
      object-fit: cover;
    }
    img:nth-of-type(2) {
      border-radius: 50%;
      height: 3.125rem;
      // width: 3.125rem;
      object-fit: cover;
    }
  }
  .usrInfo {
    flex: 1;
    margin: {
      bottom: 0.625rem;
    }
    .user {
      display: flex;
      align-items: center;
      justify-content: space-between;

      span {
        @include ColorStyle(0.9375rem, #4d4d4d);
        font-weight: bold;
      }
      .upload {
        border-radius: 0.625rem;
        background-color: #01d2ba;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: {
          top: 0.325rem;
          bottom: 0.325rem;
          left: 0.625rem;
          right: 0.625rem;
        }
        span {
          color: white;
          margin: {
            left: 0.325rem;
          }
        }
        img {
          height: 1rem;
          object-fit: cover;
          // width: 1.1rem;
        }
      }
    }
    .userName {
      @include ColorStyle(1rem, #4d4d4d);
    }
  }
}
.ModelList {
  width: 90vw;
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  border-radius: 0.625rem;
  padding: {
    left: 1.25rem;
    right: 1.25rem;
  }
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.3);
  .list_item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 3.875rem;
    justify-content: space-between;
    border-bottom: 1px solid #f1f1f1;
    div {
      display: flex;
      align-items: center;
      justify-content: center;
      img {
        margin: {
          right: 0.625rem;
        }
      }
    }
    img {
      height: 1rem;
      object-fit: cover;
    }
  }
}
